package adv2;

public class RuntimeTest {

	public static void main(String[] args) {
		// Integer j = 100;
		// Integer j1 = 100;
		// Integer j2 = j;
		// j = 29;
		// System.out.println("j2=" + j2);
		// System.out.println(j == j1);
		// Runtime不能new，没有静态方法
		Runtime r = Runtime.getRuntime();
		Runtime r1 = Runtime.getRuntime();
		Runtime r2 = Runtime.getRuntime();
		// 单例
		System.out.println(r == r1);
		System.out.println(r == r2);

	}

}
